package com.yonyou.brigade.basic_init.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * 租户主子账户实体类
 *
 * @author kangfw5@yonyou.com
 * @since 2019-01-07
 */
@TableName("bri_channel_account")
public class BriChannelAccount extends Model<BriChannelAccount> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 租户ID
     */
    private String tenant;
    /**
     * 主账户
     */
    private String account;
    /**
     * 主账户名称
     */
    @TableField("account_name")
    private String accountName;
    /**
     * 父账户
     */
    @TableField("parent_account")
    private String parentAccount;
    /**
     * 是否根账户 1是 0否
     */
    @TableField("is_root")
    private Integer isRoot;
    /**
     * 是否启用 1启用 0未启用
     */
    private Integer enabled;
    private Date ts;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getParentAccount() {
        return parentAccount;
    }

    public void setParentAccount(String parentAccount) {
        this.parentAccount = parentAccount;
    }

    public Integer getIsRoot() {
        return isRoot;
    }

    public void setIsRoot(Integer isRoot) {
        this.isRoot = isRoot;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String TENANT = "tenant";

    public static final String ACCOUNT = "account";

    public static final String ACCOUNT_NAME = "account_name";

    public static final String PARENT_ACCOUNT = "parent_account";

    public static final String IS_ROOT = "is_root";

    public static final String ENABLED = "enabled";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BriChannelAccount{" +
        "id=" + id +
        ", tenant=" + tenant +
        ", account=" + account +
        ", accountName=" + accountName +
        ", parentAccount=" + parentAccount +
        ", isRoot=" + isRoot +
        ", enabled=" + enabled +
        ", ts=" + ts +
        "}";
    }
}
